package cn.xinfei.xdecision.common.dao.datax.datamanage.v2;

import cn.xinfei.xdecision.common.model.datax.datamanage.v2.VariableUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface VariableUserMapper extends BaseMapper<VariableUser> {

    /**
     * updateStatus:(单个或批量更新用户字段关系). <br/>
     *
     * @param  paramMap 参数集合
     * @return 更新成功
     * */
    boolean updateStatus(Map<String, Object> paramMap);

    /**
     * backVariableByVarCodes:(批量修改变量删除状态为启用状态(1)). <br/>
     *
     * @param paramMap 参数集合
     * @return 更新是否成功
     */
    boolean backVariableByVarCodes(Map<String, Object> paramMap);

    /**
     * batchCreateVariableUserRel:(批量导入变量信息后批量绑定变量和用户关系). <br/>
     *
     * @param  paramMap 参数集合
     * @return 插入成功
     * */
    boolean batchCreateVariableUserRel(Map<String, Object> paramMap);

}
